package com.spring.learn.springboot._01;

/**
 * bean创建完毕后的操作
 * bean销毁的操作
 */
public class BeanInitAndClose02 {


    public void init() {
        System.out.println("bean02始化完毕");
    }


    public void destroy() {
        System.out.println("bean02完毕");

    }

   /* @Bean(initMethod = "init",destroyMethod = "destory")
    public BeanInitAndClose02 createBean(){
        return  new BeanInitAndClose02();
    }*/
}
